

module.exports = {
    namespaced: true,
    state: {
        namespace: [{
           id:9,done:false 
        },{
            id:11,done:false 
         },{
            id:1,done:true 
         },{
            id:9,done:false 
         }],
        name:"我是 namespace"
	},
    getters: {
        anotherGetter2(state) {
            return "anotherGetter-getters"
        }
    },
	mutations: {
		changeSlideState(state,name) {
			// 变更状态
			state.name+="--------namespace"
		},
        mutationsFn(state) {
            console.log("namespace------mutationsFn",state)
        }
	},
    // 异步更改状态
    actions: {
        actionsIncrement(context, payload) {
            setTimeout(() => {
                context.commit('changeSlideState')
                console.log("namespace-----actionsIncrement出现了");
            },5000)
           
        },
        actionFn(state) {
            console.log("namespace------actionFn",state)
        }
    }
}